import request from '@/utils/request'

export function fetchConfessionList(query) {
  return request({
    url: '/vue-element-admin/confession/list',
    method: 'get',
    params: query
  })
}

export function createConfession(data) {
  return request({
    url: '/vue-element-admin/confession/create',
    method: 'post',
    data
  })
}

export function likeConfession(data) {
  return request({
    url: '/vue-element-admin/confession/like',
    method: 'get',
    data
  })
}
